package test

import (
	"fmt"
	"math/rand"
)

func main() {
	slice := []int{1, 2, 3}

	// 向切片追加一个元素
	newSlice := append(slice, 4)

	for i := 0; i < 100; i++ {
		a := rand.Intn(len(newSlice))
		fmt.Println("随机数：", a)
	}

}
